<style>
    .n-default .msg-box{
        position: absolute;
        z-index: 1;
        top: 32px;
        left: 5px;
        display: none;
    }
</style>
<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group member">
        <label class="control-label col-xs-12 col-sm-2">{:__('会员编号')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-memberNum" class="form-control" name="row[memberNum]" type="text" data-rule="required">
        </div>
        <div class="col-xs-12 col-sm-1">
            <button type="button" class="btn btn-info serachMember">搜索</button>
        </div>
    </div>

    <div class="form-group">
        <div class="goodItem row" style="margin-bottom: 10px;">
            <label class="control-label col-xs-12 col-sm-2">{:__('填写购买商品')}:</label>
            <div class="col-xs-12 col-sm-8">
                <div class="row">
                    <div class="span6 col-xs-12 col-sm-2">
                        <!--<input class="form-control" name="row[goods]" type="text" placeholder="输入商品名称">-->
                        <select name="row[type][]" class="form-control selectpicker" data-rule="required">
                            <option>选择类型</option>
                            {foreach name='gTypeList' item='vo'}
                            <option value="{$vo.id}">{$vo.title}</option>
                            {/foreach}
                        </select>
                    </div>
                    <div class="span6 col-xs-12 col-sm-3">
                        <input class="form-control" name="row[title][]" type="text" placeholder="输入商品名称"
                               data-rule="required">
                    </div>`
                    <div class="span6 col-xs-12 col-sm-2">
                        <input class="form-control" name="row[money][]" type="text" placeholder="输入金额"
                               data-rule="required">
                    </div>
                    <div class="span6 col-xs-12 col-sm-5">
                        {foreach name='disruleList' item='vo'}
                        <label class="radio-inline"> <input type="radio" name="row[color][0]" value="{$vo.id}" checked
                                                            data-rule="required"><span
                                style="display:inline-block;width: 10px;height: 10px;background-color: {$vo.color}"></span></label>
                        {/foreach}
                    </div>
                </div>
            </div>
            <div class="col-xs-12 col-sm-1">
                <button class="btn btn-info addGoodBtn" type="button">增加</button>
            </div>
        </div>
    </div>

    <div class="form-group discount">
        <label class="control-label col-xs-12 col-sm-2">{:__('优惠券')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-discountNum" class="form-control" name="row[discountNum]" type="text">
        </div>
        <div class="col-xs-12 col-sm-1">
            <button type="button" class="btn btn-info serachDiscount">搜索</button>
        </div>
    </div>
    <!--<div class="discountItem">-->
        <!--<div class="form-group"><label class="control-label col-xs-12 col-sm-2">优惠券</label>-->
            <!--<div class="col-xs-12 col-sm-8">-->
                <!--<table class="table table-bordered">-->
                    <!--<tr>-->
                        <!--<td>名称</td>-->
                        <!--<td>满</td>-->
                        <!--<td>抵用</td>-->
                    <!--</tr>-->
                    <!--<tr>-->
                        <!--<td>三元函数</td>-->
                        <!--<td>888</td>-->
                        <!--<td>8.88-->
                <!--</table>-->
            <!--</div>-->
        <!--</div>-->
    <!--</div>-->


    <div class="form-group code">
        <label class="control-label col-xs-12 col-sm-2">{:__('积分码')}:</label>
        <div class="c   ol-xs-12 col-sm-8">
            <input id="c-code" class="form-control" name="row[code]" type="text">
        </div>
        <div class="col-xs-12 col-sm-1">
            <button type="button" class="btn btn-info serachCode">搜索</button>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('实付金额')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" data-rule="required" class="form-control"  name="row[price]" type="text"
                   value="" >
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('预付金额')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-prepay" data-rule="required" class="form-control"  name="row[prepay]" type="text"
                   value="">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                {foreach name="statusList" item="vo"}
                <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="0" }checked{/in} />
                    {$vo}</label>
                {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>



